package com.charles.dynamic.config;

import com.charles.dynamic.config.core.SpringValueProcessor;
import com.charles.dynamic.config.event.ConfigChangeListener;
import org.springframework.context.annotation.Bean;

/**
 * @author charles
 * @date 2022/11/25 16:22
 */
public class AutoUpdateConfigConfiguration {

    @Bean
    public ConfigChangeListener autoUpdateConfigChangeListener() {
        return new ConfigChangeListener();
    }

    @Bean
    public SpringValueProcessor springValueProcessor() {
        return new SpringValueProcessor();
    }
}
